﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 邀请码
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.jsonParse(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    [fastCSharp.code.cSharp.sqlModel]
    public partial class invitationCode
    {
        /// <summary>
        /// 电子邮箱
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 1, MaxStringLength = 256, IsAscii = true)]
        public string Email;
        /// <summary>
        /// 用户标识
        /// </summary>
        public int UserId;
        /// <summary>
        /// 邀请码
        /// </summary>
        public long Code;
        /// <summary>
        /// 邀请时间
        /// </summary>
        public DateTime InviteTime = fastCSharp.date.NowSecond;
        /// <summary>
        /// 简介
        /// </summary>
        [fastCSharp.emit.dataMember(MaxStringLength = 256)]
        public string Introduction = string.Empty;
        /// <summary>
        /// 被邀请者标识
        /// </summary>
        public int InvitedUserId;
        /// <summary>
        /// 是否已发送邮件
        /// </summary>
        public bool IsSend;
    }
}
